package com.woniuxy.bean4;

public class Teacher {
    private String name;

    public Teacher(String name) {
        this.name = name;
    }

    public void giveLession(Student student){
        System.out.println(this.name+"要给"+student.getName()+"讲课");
    }
}
